import request from "/@/api/new_module/request";


// 根据角色切换菜单
export function getChangeRole(roleId) {
    return request({
        url: '/edulogin/changeRole.mvc' + '?roleId=' + roleId,
        method: 'get',
    })
}


function text1() {


    let re = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1f8ca8c5a6dce4b6&redirect_uri=http://516a71a4.r19.cpolar.top&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`


    let code = '021vilFa1Ch1rH0Lb6Ja117EQe0vilFh'

    let xxxxxxxxxxxxxx = `https://api.weixin.qq.com/sns/oauth2/access_token?appid=wx1f8ca8c5a6dce4b6&secret=886f2741bbd4bc51646de3c98f982872&code=071JZ5100z0A6S1KtI1003mhUb1JZ513&grant_type=authorization_code`
    let getAccessToken = `https://api.weixin.qq.com/sns/oauth2/access_token?appid=wx1f8ca8c5a6dce4b6&secret=886f2741bbd4bc51646de3c98f982872&code=021vilFa1Ch1rH0Lb6Ja117EQe0vilFh&grant_type=authorization_code`

    let result = {
        "access_token": "80_iB3xO9nJ3dj52JKey2z-e8BNHIFbNg1i77xeE3oNMWQolwWagtHsmWgdrsxPhhG9RHX-rAwqkQ2zgHZIy5x79VcGKkftcQGOln7qyvpeEQ8",
        "expires_in": 7200,
        "refresh_token": "80_4eryXEh5ZCSV4G1o1OxtoW7FKZGfAPRO4arafewKxyC1ru_cWqal1BE59C_DrkNv9NA75q_ExPxlOdIyHuTT5GvUVW1XtuxjNjx0mm9tXQI",
        "openid": "oz_A46lkBsqsgiEmi1mnkVWhafcM",
        "scope": "snsapi_userinfo"
    }

    // 获取referToken
    let getRefreshToken = `https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=wx1f8ca8c5a6dce4b6&grant_type=refresh_token&refresh_token=80_FbIX89QCfo1SkDSSJM9dh17IXjCusTk0e2n3-gZ-UnJe8x1oN5931-fQUzRco_8AAUs2qugAyVNjlim0kjW-q61DbanZj3WFez1yKX4y2gw`

    // 获取用户信息

    let getUserInfo = `https://api.weixin.qq.com/sns/userinfo?access_token=80_iB3xO9nJ3dj52JKey2z-e8BNHIFbNg1i77xeE3oNMWQolwWagtHsmWgdrsxPhhG9RHX-rAwqkQ2zgHZIy5x79VcGKkftcQGOln7qyvpeEQ8&openid=oz_A46lkBsqsgiEmi1mnkVWhafcM&lang=zh_CN`

}
